package test3.A1_2;

// Course类
class Course {
    private String courseName;
    private Building building; // 课程所在的建筑

    public Course(String courseName, Building building) {
        this.courseName = courseName;
        this.building = building;
    }

    public String getCourseName() {
        return courseName;
    }

    public Building getBuilding() {
        return building;
    }

    @Override
    public String toString() {
        return "Course{courseName='" + courseName + '\'' + ", building=" + building + '}';
    }
}
